<?php
/*  
  Copyright (c) 2010-02 SongCMS 
  SongCMS All Rights Reserved. 
  Support:www.SongCMS.com
  QQ:544255858   19951025
  Author:Song  Version:3.17
  Date:2010-08-12 09:28:32
*/

include_once('Admin.php');
if($WebStaticHTML != 1)
die('您没有开通HTML静态功能，请在系统全局设定中开通后进入该页。');
if(!get_cfg_var("allow_url_fopen") && !extension_loaded('curl'))
die('您的服务器不支持 file_get_contents 函数，无法完成请求。');
setcookie('isLogin','',1,"/");
if(!@file_put_contents('../config/htmlpage.php','<!--//-->')) MsgBox(1,'修改配置文件失败，没有写入权限：../config/htmlpage.php','-1');
include_once('../class/html.class.php');
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pramga: no-cache");
$html = new html();

$html -> HTMLProduction();
if(empty($html -> Error)){
	$Text = '正在生成静态文件：' . $html -> HTMLPath;
	if($html -> isEnd == 1){ //生成完毕，逻辑处理
		switch ($_GET['Action']){
			case 'ComplexProduct': //产品
				MsgBox(0,'',"ProductManage.php?Lang={$_GET['Lang']}");
				break;
			case 'ComplexPage': //内容
				MsgBox(0,'',"PageManage.php?Lang={$_GET['Lang']}");
				break;
			case 'ComplexNews': //新闻
				MsgBox(0,'',"NewsManage.php?Lang={$_GET['Lang']}");
				break;
			case 'ComplexGuestBook': //留言
				MsgBox(0,'',"GuestBookManage.php?Lang={$_GET['Lang']}");
				break;
			case 'DownloadColumn': //下载
				MsgBox(0,'',"DownloadManage.php?Lang={$_GET['Lang']}");
				break;
		}		
	}
} else {
	$Text = $html -> Error;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php echo $html -> JumpURL;?>
<style type="text/css">
body{padding:0; margin:0; font-family:Verdana, Geneva, sans-serif; font-size:13px;}
.Info{position:absolute; top:50%; left:50%; margin:-100px 0 0 -200px;}
</style>
</head>
<body>
<div class="Info">
	<table border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td align="center">&nbsp;</td>
		</tr>
		<tr>
			<td align="center" height="50" id="wait"><img src="images/wait_2.gif" width="100" height="9" border="0" /></td>
		</tr>
		<tr>
			<td align="center" style="font-size:13px; color:#363;"><?php echo $Text;?></td>
		</tr>
	</table>
</div>
</body>
</html>
